function changeCheckInTime(_this, type, endTime) {
    /*if (endMinute > 59) ++endHour;
    endMinute %= 60;*/
    var strNumber;
    if (type === 'start') {
        $("#selectEndTime").find("option").remove();
        var tempTime = $(_this).val().split(":");
        if (tempTime[1] === '30') {
            strNumber = Number(tempTime[0]) + 1;
        } else {
            strNumber = Number(tempTime[0]) + 0.5;
        }
        for (var i = strNumber; i <= endTime.number; i+=0.5) {
            var strHtml;
            var str;
            if (i % 1 === 0) {
                str = (i < 10 ? "0"+ i : i) + ':00';
                strHtml = '<option value="' + str + '">' + str + '</option>';
            } else {
                str = ((i - 0.5) < 10 ? "0"+ (i - 0.5) : (i - 0.5)) + ':30';
                strHtml = '<option value="' + str + '">' + str + '</option>';
            }

            $("#selectEndTime").append(strHtml);
        }
    } else {}

}

/**
 * select 赋值
 */
function assignment(slotInterval, startTime, endTime, objDate) {
    var slotInt = 30;
    if (slotInterval != null && slotInterval !== '') {
        slotInt = slotInterval;
    }

    for (var i = startTime.number; i <= endTime.number; i+=0.5) {
        var strHtml;
        var str;
        if (i % 1 === 0) {
            str = (i < 10 ? "0"+ i : i) + ':00';
            strHtml = '<option value="' + str + '">' + str + '</option>';
        } else {
            str = ((i - 0.5) < 10 ? "0"+ (i - 0.5) : (i - 0.5)) + ':30';
            strHtml = '<option value="' + str + '">' + str + '</option>';
        }
        $("#selectStartTime").append(strHtml);
        $("#selectStartTime").attr('start_date', objDate.startDate);
        $("#selectEndTime").append(strHtml);
        $("#selectEndTime").attr('end_date', objDate.endDate);
    }

}

function timeFormatConversion(strTime) {
    var objTime = {};
    objTime.number = strTime;
    if (strTime.indexOf(".") === -1) {
        objTime.hour = strTime;
        objTime.minute = 0;
        objTime.toString = strTime + ":00";
    } else {
        var temp = strTime.split(".");
        objTime.hour = temp[0];
        objTime.minute = 30;
        objTime.toString =  temp[0] + ":30";
    }
    return objTime;
}